package y23.Jun;
class Animal{
    private int age;//年龄
    private double high;//身高
    private double weight;//体重
    private String name;//名字
    private String hair;//头发
    private String label;//标签

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getHigh() {
        return high;
    }

    public void setHigh(double high) {
        this.high = high;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHair() {
        return hair;
    }

    public void setHair(String hair) {
        this.hair = hair;
    }

    public void introduce(){
        System.out.println("这是"+this.label);
    }
    public void eat(){
        System.out.println("正在吃饭");
    }
}
class Cat extends Animal{
    public void miMi(){
        Animal animalCat = new Animal();
        animalCat.setLabel("一只猫");
        animalCat.introduce();
        System.out.println("喵喵喵");
        System.out.println("抓鱼");
    }
}
class Dog extends Animal{
    public void wangWang(){
        Animal animalDog = new Animal();
        animalDog.setLabel("一只狗");
        System.out.println("汪汪汪");
        System.out.println("看门");
    }
}
class people extends Animal{
    public void learn(){
        System.out.println("正在学习");
    }
}

public class Test19 {
    public static void main(String[] args) {
        Cat cat = new Cat();
        cat.miMi();
        cat.setLabel("一只小猫");
        System.out.println(cat.getLabel());
        cat.introduce();
    }
}
